<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login</title>
</head>
<body>
	<div id="menu-wrapper">
		<div id="menu">
			<ul>
				<li><a href="Home.html">Homepage</a></li>
				<li class="current_page_item"><a href="Login.jsp">Login</a></li>
				<li><a href="Registrazione.jsp">Registrazione</a></li>
				<li><a href="RicercaNonReg.html">Ricerca</a></li>
			</ul>
		</div>
		<!-- end #menu -->
	</div>
	<div id="page">
		<div id="page-bgtop">
			<div id="page-bgbtm">
				<div id="content">
					<div class="post">
						<h2 class="title">Login Form</h2>
						<div class="entry">
							<form name="loginForm" method="post" action="LoginServlet">
							<table>
							<tr><td>Username</td><td><input type="text" name="username"></td></tr>
							<tr><td>Password</td><td><input type="password" name="password"></td></tr>
							</table>
      						<p><input type="submit" value="Login"> <input type="reset" value="Reset"></p>
   							</form>
   							<% if(request.getAttribute("errore") != null) {
	  
	                              request.setAttribute("messaggio", request.getAttribute("errore"));
	   
                               }
   
                               else {
    	  
    	                          request.setAttribute("messaggio", "");
    	  
                               }
                            %>
                            <p><%= request.getAttribute("messaggio") %></p>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>